<!doctype html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <!-- 响应式 -->
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>{% block title %} {% endblock %}</title>
  <!-- css file -->
  <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="/static/css/comm.css">
  <style>
     body{
          overflow-y: auto;
          min-width: 1200px !important;
      }
    .to-top-div {
      position: fixed;
      right: 36px;
      bottom: 66px;
    }
    .to-top-img {
      width: 65px;
      height: 46px;
    }
    .to-top-img:hover {
      opacity: 0.7;
    }
    .Mycopyright {
      text-align: center; !important;
      font-size: 16px;!important;
      margin-top: 6px;
      bottom: 0;
    }
    .DomainFooter {
      padding: 30px 15px;
      bottom: 10px;
      margin-bottom: 5px;
      border-bottom-right-radius: 3px;
      border-bottom-left-radius: 3px;
    }
  </style>

  <!-- end css file -->
</head>
<body>
{% block mask %}{% endblock %}
<!-- header start -->
<nav class="navbar navbar-default">
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
              data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/index">DomainTrade</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav navbar-right">
        <li class="dropdown">
          <a href="/index" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
             aria-expanded="false">更多操作<span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="/repasswd">忘记密码</a></li>
            {% if is_super != '1' %}
              <li><a href="/record">交易记录</a></li>
            {% endif %}

            {% if is_super == '1' %}
              <li><a href="/admin">管理</a></li>
            {% endif %}
            <li role="separator" class="divider"></li>
            {% if is_login == '1' %}
              <li><a href="/signout">登出</a></li>
            {% else %}
              <li><a href="/signin">登录</a></li>
            {% endif %}
          </ul>
        </li>
      </ul>
      <div class="navbar-form navbar-right">
        <div class="form-group control-label">
          <input id="whios_values" type="text" value class="form-control" placeholder="Whois查询..">
        </div>
        <a id="whois_search" class="btn btn-primary" target="_blank">搜索</a>
      </div>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
<!-- end header -->
<div class="to-top-div" id="toTop">
  <img title="返回顶部" class="to-top-img" src="/static/img/jump_to_top.png" alt="返回顶部">
</div>

{% block body %}

{% endblock %}
<div class="DomainFooter">
    <p style="text-align: center; font-size: 16px;">© 2010 - 2018 <a href="/index" style="color: #2b2d2d;">小马哥荣誉出品</a></p>
</div>
<!-- js -->
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/jquery.cookie.js"></script>
<script src="/static/bootstrap/js/bootstrap.min.js"></script>

<script>
    $('#whios_values').change(function () {
        var whiosVlaues = $('#whios_values').val();
        if (whiosVlaues != '') {
            $('#whois_search').attr('href', 'http://whois.stupig.com/?domain=' + whiosVlaues);
        } else {
            $('#whois_search').removeAttr('href', '');
        }
        ;
    });
    $(function(){
        $("#toTop").click(function () {
            $("html,body").animate({scrollTop: 0}, 500);
        });
      });
</script>

<!-- end js -->
</body>
</html>